mysql order by desc

一個很簡單不過我基礎不好的問題 = = ... 就是我的欄位有三欄 我想依序 a b c 來做排序,先排 a 如果都一樣 再排 b 再一樣再對 c (譬如年月日好了) 我下的指令是 order by `year` DESC,`month` DESC,`day` DESC 當然錯了 ... @@ ... 因為上網有找到是 ORDER BY field1 ...

相關軟體 MySQL 下載

MySQL 為目前最流行的資料庫查詢系統。而 MySQL 主要是以速度、耐用性、易用性為目標,廣泛被企業使用。 支援 MS SQL、Excel、MS Access、XML、CSV 等格式,導入至 MySQL。 ...

了解更多 »

  • Sorting by date & time in descending order? Ask Question up vote 27 down vote favorite...
    mysql - Sorting by date & time in descending order? - St ...
    https://stackoverflow.com
  • If you want to explicity specify the order of which 'order by' comes back in, like...
    MySQL :: MySQL 5.7 Reference Manual :: 3.3.4.4 Sorting Rows ...
    https://dev.mysql.com
  • GROUP BY implicitly sorts by default (that is, in the absence of ASC or DESC designators),...
    MySQL :: MySQL 5.7 Reference Manual :: 8.2.1.13 ORDER BY Opt ...
    https://dev.mysql.com
  • The ASC stands for ascending and the DESC stands for descending. By default, the ORDER BY ...
    MySQL ORDER BY - Sort a Result Set in MySQL
    http://www.mysqltutorial.org
  • 一個很簡單不過我基礎不好的問題 = = ... 就是我的欄位有三欄 我想依序 a b c 來做排序,先排 a 如果都一樣 再排 b 再一樣再對 c (譬如年月日好了) 我下的指令是...
    MYSQL 兩個以上 order by 條件設定 | Yahoo奇摩知識+
    https://tw.answers.yahoo.com
  • MySQL 排序 我们知道从 MySQL 表中使用 SQL SELECT 语句来读取数据。 如果我们需要对读取的数据进行排序,我们就可以使用 MySQL 的 ORDER BY 子句...
    MySQL 排序 - 菜鸟教程 - 学的不仅是技术,更是梦想!
    http://www.runoob.com
  • This MySQL tutorial explains how to use the MySQL ORDER BY clause with syntax and examples...
    MySQL: ORDER BY Clause - techonthenet.com
    https://www.techonthenet.com
  • The code above retrieves data from an address book and sorts the results by the person&#39...
    Ordering or Sorting MySQL Data - ThoughtCo
    https://www.thoughtco.com
  • [] 代表 WHERE 子句不是一定需要的。 不過,如果 WHERE 子句存在的話,它是在 ORDER BY 子句之前。 ASC 代表結果會以由小往大的順序列出,而 DESC 代表...
    SQL ORDER BY - 1Keydata SQL 語法教學
    https://www.1keydata.com
  • The ORDER BY keyword is used to sort the result-set in ascending or descending order. The ...
    SQL ORDER BY Keyword - W3Schools Online Web Tutorials
    https://www.w3schools.com